package com.delivery.dto;

import com.delivery.entity.SetmealDish;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

@ApiModel(description = "套餐操作DTO")
@Data
public class SetmealDTO {

    @ApiModelProperty(value = "分类ID", required = true, example = "1")
    @NotNull
    private Long categoryId;

    @ApiModelProperty(value = "套餐描述", example = "经典套餐")
    private String description;

    @ApiModelProperty(value = "套餐ID", example = "1")
    private Long id;

    @ApiModelProperty(value = "套餐图片", required = true, example = "meal.jpg")
    @NotBlank
    private String image;

    @ApiModelProperty(value = "套餐名称", required = true, example = "商务套餐A")
    @NotBlank
    private String name;

    @ApiModelProperty(value = "套餐价格", required = true, example = "50.00")
    @NotNull
    private BigDecimal price;

    @ApiModelProperty(value = "套餐菜品集合", required = true)
    @NotEmpty
    private List<SetmealDish> setmealDishes;

    @ApiModelProperty(value = "状态", required = true, example = "1")
    @NotNull
    private Integer status;

}
